package affair;

import org.junit.Test;
import org.springframework.context.support.GenericApplicationContext;

public class test {
    @Test
    public void test(){
        GenericApplicationContext t = new GenericApplicationContext();
        t.refresh();
        t.registerBean("user1",AOP.userDaoimp.class,()->new AOP.userDaoimp() );
        Object user1 = t.getBean("user1");
        System.out.println(user1);

    }
}
